﻿using System;
using MaLu.Data;
using Wicresoft.Framework.Authentication;

namespace MaLu.Common
{
    public class VisitePage : BasePage
    {
        private IDbProvider provider = null;
        protected IDbProvider Provider
        {
            get
            {
                if (provider == null)
                {
                    provider = ProviderManager.Factory.CreateDbProvider();
                    provider.Open();

                }
                return provider;
            }

        }

        public Guid VisiteID
        {

            get
            {
                Guid gd = Guid.NewGuid();
                try
                {

                    gd = new Guid(Request["VisiteID"]);
                }

                catch
                { }

                return gd;
            }

        }

        public Guid ItemID
        {
            get
            {
                Guid gd = Guid.Empty;
                try
                {
                    gd = new Guid(Request["ItemID"]);
                }

                catch
                { }
                return gd;
            }
        }
    }
}